const qiniuSDK = require('qiniu');
const QINIU_CONFIG = {
    AK: "uJ7VD8tbkeC6OJChWAkavEIwB9lLTTTc7JVggPqZ",
    SK: "NUgNoCNshFLGOjXvlKwzDwitFwJjHo81JUJic_dc",
};
const mac = new qiniuSDK.auth.digest.Mac(QINIU_CONFIG.AK, QINIU_CONFIG.SK);
const option = {
    scope: 'image',      //定义的存储空间名
    expires: 3600 * 2, //有效期
};
const putPolicy = new qiniuSDK.rs.PutPolicy(option);
console.log(putPolicy.uploadToken(mac));
module.exports = putPolicy.uploadToken(mac);
